using UnityEngine;
using BehaviorDesigner.Runtime;
using BehaviorDesigner.Runtime.Tasks;

public class FindAnyPatrolPos : Conditional
{
	public override TaskStatus OnUpdate()
	{
		GameObject patrolPos=GameObject.Find("PatrolPos");
		if (patrolPos.transform.childCount > 0) 
		{
            return TaskStatus.Success;
		}
		else 
		{
			return TaskStatus.Failure;
		}
		
	}
}